/* 公共样式 */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    height: 100%;
}

body {
    height: 100%;
    /*页面背景图片*/
    background-image: url(../image/dog.jpg) ;
    /*是否重复背景图像*/
    background-repeat: no-repeat;
    /*页面背景位置*/
    background-position: center center;
    /*高度宽度把区域填充满*/
    background-size: cover;
}
/*导航栏*/
.nav {
    width: 100%;
    height: 50px;
    color: white;
    /*背景色*/
    background-color: rgba(50,50,50,0.4);
    /*弹性布局*/
    display: flex;
    /*弹性容器内的项目指定默认对齐方式*/
    align-items: center;
}

.nav img {
    height: 40px;
    width: 40px;
    margin-left: 30px;
    margin-right: 10px;
    /*设置位圆形*/
    border-radius: 20px;
}

.nav a{
    color: white;
    /*去掉 a 标签下划线*/
    text-decoration: none;
    padding: 0px 10px;
}
/*空格*/
.nav .spacer {
    width: 75%;
}

.contaner {
    /*减号两侧加空格*/
    height: calc(100% - 50px);
    width: 1800px;
    margin: 0 auto;
    display: flex;
    /*等间距铺开*/
    justify-content: space-between;
}

.contaner .contanerleft {
    height: 100%;
    width: 400px;
}
.contaner .contaneright {
    height: 100%;
    width: 1390px;
    background-color: rgba(256, 256,256, 0.4);
    border-radius: 20px;
    padding:40px;
    /*内容超出范围时,添加滚动条*/
    overflow: auto;
}

.card {
    background-color: rgba(256, 256,256, 0.4);
    padding: 60px;
    border-radius: 20px;
}

.card img {
    height: 280px;
    width: 280px;
    border-radius: 140px;
}

.card h3 {
    padding: 10px;
    text-align: center;
}

.card a {
    text-align: center;
    color: gray;
    /*去掉下划线*/
    text-decoration: none;
    /*转换为块级标签*/
    display: block;
    /*外边框底部*/
    margin-bottom: 10px;
}

.card .counter {
    /*弹性布局*/
    display: flex;
    padding: 10px;
    /*属性（水平）对齐弹性容器的项目  项目在行之前、行之间和行之后留有空间。*/
    justify-content: space-around;
}   